package hrms.dao;

import hrms.entity.Absenteeism;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface AbsenteeismMapper {
    int insertAbsenteeism(Absenteeism absenteeism,Integer staff_id);
    int updateAbsenteeism(Absenteeism absenteeism);
    int deleteAbsenteeism(@Param("id")Integer id);
    List<Absenteeism> selectAllAbsenteeism();
    List<Absenteeism> selectAbsenteeismByYearAndMonth(@Param("year")Integer year,@Param("month")Integer month);
    List<Absenteeism> selectAbsenteeismByStaffId(@Param("id")Integer id);
}